﻿namespace WMS6.Web.BillingServiceRef
{
    using System;
    using System.CodeDom.Compiler;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Diagnostics;
    using System.Runtime.CompilerServices;
    using System.Runtime.Serialization;

    [Serializable, DebuggerStepThrough, GeneratedCode("System.Runtime.Serialization", "3.0.0.0"), DataContract(Name="AccessorialChargesOrderInfo", Namespace="http://schemas.datacontract.org/2004/07/WMS6.DataEntity")]
    public class AccessorialChargesOrderInfo : IExtensibleDataObject, INotifyPropertyChanged
    {
        [OptionalField]
        private List<AccessorialChargesInfo> AccessorialChargesInfosField;
        [OptionalField]
        private List<AccessorialChargesOrderDetailInfo> AccessorialChargesOrderDetailInfosField;
        [OptionalField]
        private string AccessorialTypeField;
        [NonSerialized]
        private ExtensionDataObject extensionDataField;
        [OptionalField]
        private string OrderIDField;
        [OptionalField]
        private string OwnerIDField;
        [OptionalField]
        private int RowIDField;
        [OptionalField]
        private string StatusField;
        [OptionalField]
        private string TypeField;
        [OptionalField]
        private string WhIDField;

        public event PropertyChangedEventHandler PropertyChanged;

        protected void RaisePropertyChanged(string propertyName)
        {
            PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
            if (propertyChanged != null)
            {
                propertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }

        [DataMember]
        public List<AccessorialChargesInfo> AccessorialChargesInfos
        {
            get
            {
                return this.AccessorialChargesInfosField;
            }
            set
            {
                if (!object.ReferenceEquals(this.AccessorialChargesInfosField, value))
                {
                    this.AccessorialChargesInfosField = value;
                    this.RaisePropertyChanged("AccessorialChargesInfos");
                }
            }
        }

        [DataMember]
        public List<AccessorialChargesOrderDetailInfo> AccessorialChargesOrderDetailInfos
        {
            get
            {
                return this.AccessorialChargesOrderDetailInfosField;
            }
            set
            {
                if (!object.ReferenceEquals(this.AccessorialChargesOrderDetailInfosField, value))
                {
                    this.AccessorialChargesOrderDetailInfosField = value;
                    this.RaisePropertyChanged("AccessorialChargesOrderDetailInfos");
                }
            }
        }

        [DataMember]
        public string AccessorialType
        {
            get
            {
                return this.AccessorialTypeField;
            }
            set
            {
                if (!object.ReferenceEquals(this.AccessorialTypeField, value))
                {
                    this.AccessorialTypeField = value;
                    this.RaisePropertyChanged("AccessorialType");
                }
            }
        }

        [Browsable(false)]
        public ExtensionDataObject ExtensionData
        {
            get
            {
                return this.extensionDataField;
            }
            set
            {
                this.extensionDataField = value;
            }
        }

        [DataMember]
        public string OrderID
        {
            get
            {
                return this.OrderIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.OrderIDField, value))
                {
                    this.OrderIDField = value;
                    this.RaisePropertyChanged("OrderID");
                }
            }
        }

        [DataMember]
        public string OwnerID
        {
            get
            {
                return this.OwnerIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.OwnerIDField, value))
                {
                    this.OwnerIDField = value;
                    this.RaisePropertyChanged("OwnerID");
                }
            }
        }

        [DataMember]
        public int RowID
        {
            get
            {
                return this.RowIDField;
            }
            set
            {
                if (!this.RowIDField.Equals(value))
                {
                    this.RowIDField = value;
                    this.RaisePropertyChanged("RowID");
                }
            }
        }

        [DataMember]
        public string Status
        {
            get
            {
                return this.StatusField;
            }
            set
            {
                if (!object.ReferenceEquals(this.StatusField, value))
                {
                    this.StatusField = value;
                    this.RaisePropertyChanged("Status");
                }
            }
        }

        [DataMember]
        public string Type
        {
            get
            {
                return this.TypeField;
            }
            set
            {
                if (!object.ReferenceEquals(this.TypeField, value))
                {
                    this.TypeField = value;
                    this.RaisePropertyChanged("Type");
                }
            }
        }

        [DataMember]
        public string WhID
        {
            get
            {
                return this.WhIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.WhIDField, value))
                {
                    this.WhIDField = value;
                    this.RaisePropertyChanged("WhID");
                }
            }
        }
    }
}

